/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 86183
 * Date: 2022-10-02
 * Time: 9:20
 */
public class Test {
    public static void main(String[] args) {
        TestBinaryTree testBinaryTree = new TestBinaryTree();
        TestBinaryTree.TreeNode root = testBinaryTree.createTree("ABC##DE#G##F###");
        testBinaryTree.preOrder(root);
        System.out.println();
        testBinaryTree.inOrder(root);
        System.out.println();
        testBinaryTree.postOrder(root);
        System.out.println();
        System.out.println(testBinaryTree.size(root));
        System.out.println(testBinaryTree.size2(root));
        System.out.println(testBinaryTree.getLeafNodeCount(root));
        testBinaryTree.getLeafNodecount2(root);
        System.out.println(TestBinaryTree.leafsize);
        System.out.println(testBinaryTree.getKLevelNodeCount(root,5));
    }
}
